<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8" />
    <title></title>

</head>
<body>
    <script>
       function demo(){
          alert(str);
       }
        demo();
    </script>
<button onclick="name()">anniu</button>
</body>
</html>